package cn.sinonet.sms.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.sinonet.sms.dao.HKTXDao;
import cn.sinonet.sms.model.HKTX;

@Service("hktxManager")
public class HKTXManagerImp extends GenericManagerImp<HKTX, Long> implements
		HKTXManager {

	HKTXDao hktxDao;

	public HKTXDao getHktxDao() {
		return hktxDao;
	}

	@Autowired
	public void setHktxDao(HKTXDao hktxDao) {
		this.dao = hktxDao;
		this.hktxDao = hktxDao;
	}

	@Override
	public HKTX saveHKTX(HKTX hktx) {
		return dao.save(hktx);
	}

	public HKTX loadByMessageAndPhone(String message, String phone, String time) {
		return (HKTX) hktxDao.loadByMessageAndPhone(message, phone, time);
	}

}
